const LastRowNum = R.converge(
  R.slice(R.__, Number.POSITIVE_INFINITY, R.__),
  [
    R.compose( R.add(2), R.indexOf(':') ),
    R.identity
  ]
);

const RowCount = R.compose( Number, LastRowNum, R.prop('!ref') );

const PairOf = sheet1 => rowNum => R.map(
  R.compose(
    R.path(R.__, sheet1),
    R.pair(R.__, 'v'),
    R.concat(R.__, String(rowNum))
  ),
  ['A', 'B']
);

export const Pairs = R.converge(R.map, [
  PairOf,
  R.compose( R.range(1), R.inc, RowCount )
]);
